const env = process.env.NODE_ENV    // 获取环境变量

let mysql_conf

if (env === 'dev') {
  mysql_conf = {
    host: 'localhost',
    port: '3306',
    database: 'myblog',
    user: 'root',
    password: '130049693'
  }
}

if (env === 'production') {
  mysql_conf = {
    host: 'localhost',
    port: '3306',
    database: 'myblog',
    user: 'root',
    password: '130049693'
  }
}

module.exports = {
  mysql_conf
}